package uscdb.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name = "tarea")
@DynamicInsert(true)
@DynamicUpdate(true)
public class Tarea implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4229732968343239032L;
	private String id;
	private String name;
	private String description;

	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 36)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "description", length = 1000)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return "Tarea [id=" + id + ", name=" + name + ", description=" + description + "]";
	}

}
